package com.mzj.saas.sdk.pay.callback;

import java.util.Map;

/**
 * 支付异步回调
 * @author hp
 *
 */
public abstract class AbstractPayCallback {

	/**
     * 微信商户号秘钥/或支付宝公钥
     */
    protected abstract String key();
	
	/**
     * 支付回调验证参数
     */
    protected abstract Map<String,String> verifyResult();
    protected abstract Map<String,String> getReqInfo(Map<String,String> packageParams);

	/**
     * 签名验证
     */
    protected abstract boolean verifySignature(String... values);
    
    /**
     * 异步返回成功结果
     */
    protected abstract void resultSuccess() throws Exception;
    /**
     * 异步返回失败结果
     */
    protected abstract void resultFail() throws Exception; 
    
}
